package jvm;

import java.util.ArrayList;
import java.util.List;

/**
 * @author wanyuxiang
 * @version 1.0
 * @project Java_base
 * @create 2017-05-05 10:57
 * @desc -XX:PermSize=10M -XX:MaxPermSize=10M (JDK6才有效果)
 **/
public class RuntimeConstantPoolOOM {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        int i = 0;
        while (true) {
            list.add(String.valueOf(i++).intern());
        }
    }

}
